From fc516cf79af35851a64c421472621ae3387e085b Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Mon, 30 Aug 2004 20:23:36 +0000 Subject: [PATCH] fix nasty error due to /dev/random exhaustion --- config/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/index.php b/config/index.php index 0f6f2352e7..2a6567bca6 100644 --- a/config/index.php +++ b/config/index.php @@ -791,7 +791,7 @@ function writeLocalSettings( $conf ) { $ugly = ($conf->prettyURLs ? "# " : ""); $rights = ($conf->RightsUrl) ? "" : "# "; - $file = @fopen( "/dev/random", "r" ); + $file = @fopen( "/dev/urandom", "r" ); if ( $file ) { $proxyKey = bin2hex( fread( $file, 32 ) ); fclose( $file ); -- 2.20.1